package Demo6;

/**
 * ClassName Bird
 * Description TODO
 * Author Yanyan
 * Date 2025/11/11 22:01
 * Version 1.0
 */
public class Bird extends Animal{

    public Bird(String name,int age) {
        super(name,age);
    }

    @Override
    public void eat() {
        System.out.println(this.name + "吃鸟食儿中");
    }

    public void fly() {
        System.out.println(this.name + "起飞了！");
    }
}
